a = 'python'

# b = len(a)
#
# if b > 5:
#     print('长度大于5，长度: ' + str(b))

# 计算的同时赋值给 b
if (b := len(a)) > 5:
    print('长度大于5，长度: ' + str(b))
